﻿using Xtensive.Orm;
using Xtensive.Sql;
using Xtensive.Sql.Dml;

namespace SqlCustomCompiler.Model
{
  [CompilerContainer(typeof (SqlExpression))]
  public static class SqlCompilers
  {
    [Compiler(typeof (ServerMethods), "Like", TargetKind.Static | TargetKind.Method)]
    public static SqlExpression Like(SqlExpression input, SqlExpression pattern)
    {
      return SqlDml.Like(input, pattern);
    }
  }
}